package com.zjn.serviceb.service.feign;

import com.zjn.entity.Identity;
import com.zjn.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zaker
 * @program: signit_parent
 * @date 2021-04-01 11:13
 */
@FeignClient(name = "serviceb", contextId ="ServiceBFeign")
public interface ServiceBFeign {

    /*
    * 更新认证信息
    * */
    @PostMapping("/updateidentity")
    public String updateIdentity(@RequestBody Identity identity);

    /*
    *
    * 查询认证信息
    * */
    @GetMapping("/findIdentity")
    public Identity findIdentity(@RequestBody Identity identity);

    /*
    * 创建认证信息
    * */
    @PostMapping("/createIdentity")
    public String createIdentity(@RequestBody Identity identity);
}
